package com.ly.aps.system.provider.exception;

import com.stone.commons.core.enums.ErrorType;
import lombok.Getter;

/**
 * @ClassName LongiErrorType
 * @Date 2021/7/7 14:55
 * @Author pengc
 */
@Getter
public enum LongiErrorType implements ErrorType {

    DATA_EXIST("00001", "数据已存在"),
    DATA_NOT_EXIST("00002", "数据不存在"),
    DATA_IS_NULL("00003", "数据不能为空"),
    PARAM_IS_NULL("00004", "入参不能为空"),
    INSERT_FAIL("00005", "数据新增失败!");


    /**
     * 错误类型码
     */
    private String code;
    /**
     * 错误类型描述信息
     */
    private String msg;

    LongiErrorType(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return null;
    }

    @Override
    public String getMsg() {
        return null;
    }

    @Override
    public String getLogCode() {
        return null;
    }
}
